package com.proj.springbootdemo.controller;

import base.BaseReturn;
import com.proj.springbootdemo.logic.DemoLogic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liujia
 */
@RestController
public class DemoController {

    @Autowired
    private DemoLogic demoLogic;

    @RequestMapping("/abc")
    public BaseReturn getBook() {
        BaseReturn br = demoLogic.demoMethod();
        return br;
    }

    @RequestMapping("/abcd")
    public BaseReturn getBookExc() {
        BaseReturn br = demoLogic.demoMethodExc();
        return br;
    }

}
